package com.sanq.product.cab.annotations;

import java.lang.annotation.*;

/**
 * com.sanq.product.cab.annotations.RateLockAnnotation
 *
 * @author sanq.Yan
 * @date 2020/2/20
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RateLimitAnnotation {

    String key() default "limit";

    // 限定时间内
    int limitTime() default 5;

    // 限流次数
    int limit() default 5;
}
